package com.kangfu.db.mapper;

import com.kangfu.db.domain.entity.TakeMedicineRecord;
import com.kangfu.db.model.vo.TakeMedicineInfoVo;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDate;
import java.util.List;

public interface TakeMedicineRecordMapper {

    public List<TakeMedicineInfoVo> selectTakeMedicineListByDate(@Param("userId") int userId, @Param("remindDate") LocalDate remindDate);


    public int insertTakeMedicineRecord(List<TakeMedicineRecord> takeMedicineRecordList);

    public TakeMedicineRecord selectTakeMedicineById( @Param("id") int id, @Param("userId") int userId);

    public int updateTakeMedicineRecordStatus(@Param("id") int id);

    public int deleteTakeMedicineRecord(@Param("id") int id);

}
